package com.nondo.dean.order.controller.api.inner;

import com.nondo.dean.common.annotation.ApiVersion;
import com.nondo.dean.common.tool.StringUtils;
import com.nondo.dean.common.tool.ValidateUtil;
import com.nondo.dean.common.web.Page;
import com.nondo.dean.common.web.Query;
import com.nondo.dean.common.web.View;
import com.nondo.dean.order.domain.TransferDetail;
import com.nondo.dean.order.model.TransferMainBean;
import com.nondo.dean.order.model.param.TransferDetailParam;
import com.nondo.dean.order.model.result.TransferDetailResult;
import com.nondo.dean.order.service.TransferDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author xiaofan
 * @Description:
 * @throws
 * @date 2018-06-1518:02
 * @Version
 *
 */
@RestController("ApiInnerTransferDetail")
@RequestMapping("/{v}/inner/transferDetail")
public class TransferDetailController {

    @Autowired
    TransferDetailService transferDetailService;

    /**
     * 修改总代系统返回的u8编号
     * @param request
     * @param response
     * @param map
     * @return
     */
    @ApiVersion(1)
    @RequestMapping("/update/proxy")
    public View<TransferDetail> updateProxy(HttpServletRequest request, HttpServletResponse response,
                                            @RequestBody Map<String,Object> map) {
        View<TransferDetail> view = new View<TransferDetail>(20000, "添加成功");

        transferDetailService.updateProxyCode(map);

        return view;
    }



}
